package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备报修日志对象 repair
 * 
 * @author ruoyi
 * @date 2025-01-07
 */
public class Repair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备报修id */
    private Long repairId;

    /** 报修人员id */
    @Excel(name = "报修人员id")
    private Long userId;

    /** 会议室地点 */
    @Excel(name = "会议室地点")
    private String roomAddress;

    /** 设备序列号 */
    @Excel(name = "设备序列号")
    private String deviceNum;

    /** 故障信息 */
    @Excel(name = "故障信息")
    private String repairMessage;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date createdAt;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date repairAt;

    /** 处理结果（0：未处理，1：处理中，2：已处理） */
    @Excel(name = "处理结果", readConverterExp = "0=：未处理，1：处理中，2：已处理")
    private String status;

    /** 逻辑删除标志（0：存在，2：删除） */
    private String isDeleted;

    public void setRepairId(Long repairId) 
    {
        this.repairId = repairId;
    }

    public Long getRepairId() 
    {
        return repairId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRoomAddress(String roomAddress) 
    {
        this.roomAddress = roomAddress;
    }

    public String getRoomAddress() 
    {
        return roomAddress;
    }
    public void setDeviceNum(String deviceNum)
    {
        this.deviceNum = deviceNum;
    }

    public String getDeviceNum()
    {
        return deviceNum;
    }
    public void setRepairMessage(String repairMessage) 
    {
        this.repairMessage = repairMessage;
    }

    public String getRepairMessage() 
    {
        return repairMessage;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setRepairAt(Date repairAt) 
    {
        this.repairAt = repairAt;
    }

    public Date getRepairAt() 
    {
        return repairAt;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setIsDeleted(String isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public String getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("repairId", getRepairId())
            .append("userId", getUserId())
            .append("roomAddress", getRoomAddress())
            .append("deviceNum", getDeviceNum())
            .append("repairMessage", getRepairMessage())
            .append("createdAt", getCreatedAt())
            .append("repairAt", getRepairAt())
            .append("status", getStatus())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
